package com.vcc.service.service;

import com.mybatisflex.core.service.IService;
import com.vcc.data.entity.BossRolePermission;
import com.vcc.service.boss.request.permission.PermissionDto;

import java.util.List;


public interface BossRolePermissionService extends IService<BossRolePermission> {

    List<BossRolePermission> listByBossRoleId(Long bossRoleId);

    List<BossRolePermission> listByUserId(Long userId);

    Boolean updateRolePermission(Long roleId, List<PermissionDto> list);

    Boolean removeByRoleId(Long roleId);

    Boolean removeByPermissionIdAndBossUserId(Long permissionId, Long bossUserId);
}
